package com.adl.hotelmanage.dao;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

import com.adl.hotelmanage.util.DbUtil;

public class DbInquire {
	public static ResultSet inquire(String sql)
	{
		Connection conn = DbUtil.getSQLConn();
		Statement st = null;
		ResultSet rs = null;
		try {
			st = conn.createStatement();
			rs = st.executeQuery(sql);
		}catch (SQLException e) {
			e.printStackTrace();
		} 

		return rs;
	}
}
